/*
 * util.c
 *
 *  Created on: Feb 20, 2012
 *      Author: albert
 */

#include "util.h"
#include <stdio.h>

int array_contains(int* a, int b, int length) {
	int i = 0;
	for (; i < length; i++) {
		if (a[i] == b)
			return 1;
	}
	return 0;
}

void print_array(int * a, int length) {
	/*int i = 0;
	for (; i < length; i++) {
		fprintf(stderr, "%d, ", a[i]);
	}
	fprintf(stderr, "\n");*/
}
